package cn.org.mrliu.ssm.model;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import cn.org.mrliu.ssm.common.model.BaseModel;

public class Message extends BaseModel {
	private Integer id;
	private String title;
	private String content;
	private Integer state;
	private Date createDate;
	private Date createTime;
	public Message() {
	
	}
	public Message(Integer id) {
		this.id = id;
	}
	public Message(String title, String content, Integer state, Date createDate, Date createTime) {
		this.title = title;
		this.content = content;
		this.state = state;
		this.createDate = createDate;
		this.createTime = createTime;
	}
	public Message(Integer id, String title, String content, Integer state, Date createDate, Date createTime) {
		this.id = id;
		this.title = title;
		this.content = content;
		this.state = state;
		this.createDate = createDate;
		this.createTime = createTime;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
	
}
